package bo.zhao.action.abstract_factory.factory;

import bo.zhao.action.abstract_factory.product.keyboard.Keyboard;
import bo.zhao.action.abstract_factory.product.keyboard.OfficeKeyboard;
import bo.zhao.action.abstract_factory.product.mouse.Mouse;
import bo.zhao.action.abstract_factory.product.mouse.OfficeMouse;

public class OfficeComputerFactory implements ComputerFactory {

	@Override
	public Mouse createMouse() {
		Mouse mouse=new OfficeMouse();
		//调用一些配置方法
		mouse.setup();
		return mouse;
	}

	@Override
	public Keyboard createKeyboard() {
		 Keyboard keyboard=new OfficeKeyboard();
		//调用一些配置方法
		 keyboard.setup();
		return keyboard;
	}

}
